package com.jiang.action;

import java.util.Iterator;
import java.util.Set;

import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class StringToSetAction extends ActionSupport {

	private Set<Integer> idSets; // 这里用转换器就是前面传来乱七八兆的数据格式进行转换
	private String msg;
	
	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Set<Integer> getIdSets() {
		return idSets;
	}

	public void setIdSets(Set<Integer> idSets) {
		this.idSets = idSets;
	}
	
	/**
	 * 多业务处理的增加方法
	 */
	public void add(){
		
		Iterator<Integer> iter = idSets.iterator();
		while(iter.hasNext()){
			System.out.println("值为:" + iter.next());
		}
		System.out.println("msg=" + this.msg);
	}
	
	
}
